package io.noties.markwon.base

import android.content.Context
import com.gitee.wsl.api.AutoConfigScope
import io.noties.markwon.base.image.destination.ImageDestinationProcessor
import io.noties.markwon.base.image.load.AsyncDrawableLoader
import io.noties.markwon.base.image.size.ImageSizeResolver
import io.noties.markwon.base.syntax.SyntaxHighlight
import io.noties.markwon.theme.MarkwonCategoryTheme


interface MarkwonScope: AutoConfigScope {
    var categoryTheme: MarkwonCategoryTheme?
    var asyncDrawableLoader: AsyncDrawableLoader?
    var syntaxHighlight: SyntaxHighlight?
    var linkResolver: LinkResolver?

    var imageDestinationProcessor: ImageDestinationProcessor?
    var imageSizeResolver: ImageSizeResolver?

    var spansFactory: MarkwonSpansFactory?

    //fun plugin()


}


fun sampleMarkwon(context: Context,block:MarkwonScope.()->Unit):Markwon?{
   return null
}